package client.comm.baoding.utils;

import android.content.Context;

import client.comm.baoding.dialog.AlertProDialog;


public class DailogShowUtil {

    private static AlertProDialog dialog;// 等待进度条
    /**
     * 显示加载进度条
     *
     * @param context
     */
    public static void dialogShow(Context context) {
        if (dialog == null) {
            dialog = new AlertProDialog(context).builder();
        } else {
            dialog.dissmiss();
        }
        dialog.show();
    }

    /**
     * 隐藏加载进度条
     */
    public static void dialogDissmiss() {
        if (dialog != null) {
            dialog.dissmiss();
            dialog = null;
        }
    }



}
